$(function () {
    $(document).click(function () {
        $("#doctorTcSearchContents",parent.document).hide();
        $("#pageStart",parent.document).val("1")
    });
    parent.$(document).click(function () {
        $("#doctorTcSearchContents",parent.document).hide();
        $("#pageStart",parent.document).val("1")
    });
    $("#doctorTcSearchContents", parent.document).on('click','.marketSearchShop',function () {
        var ide = $(this).attr('id');
        var index = layer.open({
            type: 2,
            title: '到店客户详情',
            area: ['100%', '100%'],
            fix: true,
            maxmin: true,
            content: Feng.ctxPath + '/customerDetails/to_openBileLists/' + ide + "/3"
        });
        this.layerIndex = index;
    });
    $(document).click(function () {
        $("#doctorTcSearchContents",parent.document).hide();
        $("#pageStart",parent.document).val("1")
    })
});